import { Suspense } from 'react'
import { routes } from './routes'
import { useRoutes, BrowserRouter } from 'react-router-dom'
const RouterView = () => {
  const RouterView = () => useRoutes(routes)
  return (
    <BrowserRouter>
      <Suspense>
        <RouterView></RouterView>
      </Suspense>
    </BrowserRouter>
  )
}
export default RouterView
